APPNAME=cli
IPADDR=127.0.0.1
PORT=1234
TIME=10
LIBPATH=`pwd`/../lib
CFLAGS+=-I${LIBPATH}
LDFLAGS+=-L${LIBPATH}
CC=gcc
all:
	${CC} ${CFLAGS} client.c -o ${APPNAME} ${LDFLAGS} -lds18b20cli -lpthread -ldl 
clean:
	rm -f ${APPNAME}
run:
	export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:${LIBPATH};./${APPNAME} -i ${IPADDR} -p ${PORT} -t ${TIME} -b

	
